package com.xoa.controller.hr.hrMarketingFile;


import com.xoa.service.hr.hrMarktingFile.HrMarketingFileService;
import com.xoa.util.ToJson;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * Created by Klous on 2018/8/7.
 * wangyuumeng
 */
@Controller
@RequestMapping("/hrMarketingFile")
public class HrMarketingFileController {

    @Resource
    HrMarketingFileService hrMarketingFileService;

    @RequestMapping("/peopleSchedulingListQuery")
    public String peopleSchedulingListQuery() {
        return "app/hr/hrPersonnelScheduling/peopleSchedulingListQuery";
    }

    /**
     * 查询选人控件中包含的人
     * wangyumeng
     * @param dataSrc
     * @param dataField
     * @param dataQuery
     * @param page
     * @param pageSize
     * @param useFlag
     * @return
     */
    @RequestMapping("/queryMarketingFileList")
    @ResponseBody
    public ToJson queryDataEmpsYx(HttpServletRequest request,String dataSrc, String dataField, String dataQuery,

                                              Integer page, Integer pageSize, Boolean useFlag) {
        return hrMarketingFileService.queryDataEmpsYx( request,dataSrc,  dataField,  dataQuery,  page,  pageSize,  useFlag);
    }

}